<?php

App::uses('AppHelper', 'View/Helper');
App::import('Model', 'OptionValue');

/**
 * Application helper
 *
 * Add your application-wide methods in the class below, your helpers
 * will inherit them.
 *
 * @package       app.View.Helper
 */
class OptionValuesHelper extends AppHelper {
	public $helpers = array('Html');

	public function getByOptionTypeId($id){
		$optionValue = new OptionValue();
		$optionValues =$optionValue->find("list", array('conditions' => array('option_type_id' => $id)));
		return $optionValues;
	}

	public function findById($id){
		$optionValue = new OptionValue();
		$optionValue =$optionValue->findById($id);
		return $optionValue;
	}

}
